// Definition of a simple container for listview items.
// Copyright 2005 (C) Ralph Thomas

#ifndef MISSION_VIEW_ITEM_H
#define MISSION_VIEW_ITEM_H

#include <factory.hpp>

namespace view {
	//
	/// The item view container changes color when the value it is bound
	/// to gets set to the value it has been assigned (currently the value
	/// of the "model" parameter; this may become more generic in the
	/// future). When the item view container is clicked directly, it sets
	/// the value it's bound to it's value. This behaviour is the same as
	/// a radio button.
	///
	/// \param	parameters	a dictionary of parameters for the
	///				item view widget.
	/// \param	parent		the parent of the item view widget.
	/// \param	token		the factory token for the item view
	///				widget.
	/// \return	a widget_node_t containing the new list view widget.
	//
	adobe::widget_node_t item_factory(
		const adobe::dictionary_t&	parameters,
		const adobe::widget_node_t&	parent,
		const adobe::factory_token_t&	token );
};

#endif

